const https = require("./https");

function userDoAdminLogin(params) {
  return https({
    url: "/user/doAdminLogin",
    method: "POST",
    data: {
      "mobile": "13314899417",
      "password": "Zzl252815@"
    },
    header: params.header
  });
}

function userGet(params) {
  return https({
    url: "/user/get",
    method: "GET",
    data: params.data,
    header: params.header
  });
}

function userDoRegister(params) {
  return https({
    url: "/user/doRegister",
    method: "POST",
    data: params.data,
    header: params.header
  });
}

function petList(params) {
  return https({
    url: "/pet/list",
    method: "GET",
    data: params.data,
    header: params.header
  });
}

function noticeList(params) {
  return https({
    url: "/notice/list",
    method: "GET",
    data: params.data,
    header: params.header
  });
}

function petGet(params) {
  return https({
    url: "/pet/get",
    method: "GET",
    data: params.data,
    header: params.header
  });
}

function goodsList(params) {
  return https({
    url: "/goods/list",
    method: "GET",
    data: params.data,
    header: params.header
  });
}

function goodsGet(params) {
  return https({
    url: "/goods/get",
    method: "GET",
    data: params.data,
    header: params.header
  });
}

function chatListByChatUser(params) {
  return https({
    url: "/chat/listByChatUser",
    method: "GET",
    data: params.data,
    header: params.header
  });
}

function chatListByToUserId(params) {
  return https({
    url: "/chat/listByToUserId",
    method: "GET",
    data: params.data,
    header: params.header
  });
}

function user_friendsList(params) {
  return https({
    url: "/user_friends/list",
    method: "GET",
    data: params.data,
    header: params.header
  });
}

function bbsList(params) {
  return https({
    url: "/bbs/list",
    method: "GET",
    data: params.data,
    header: params.header
  });
}
function noticeGet(params) {
  return https({
    url: "/notice/get",
    method: "GET",
    data: params.data,
    header: params.header
  });
}

function fileUpload_image_base64(params) {
  return https({
    url: "/file/upload-image-base64",
    method: "POST",
    data: params.data,
    header: params.header
  });
}

function petEdit(params) {
  return https({
    url: "/pet/edit",
    method: "POST",
    data: params.data,
    header: params.header
  });
}

function user_friendsEdit(params) {
  return https({
    url: "/user_friends/edit",
    method: "POST",
    data: params.data,
    header: params.header
  });
}

module.exports = {
  userDoAdminLogin,
  user_friendsEdit,
  userGet,
  userDoRegister,
  petList,
  petGet,
  goodsList,
  goodsGet,
  noticeList,
  noticeGet,
  chatListByChatUser,
  user_friendsList,
  chatListByToUserId,
  fileUpload_image_base64,
  petEdit,
  bbsList
}